
package com.smartfit;

import java.util.ArrayList;

class AccelValue
{
	// X
	public ArrayList<Double> accelValueXs = new ArrayList<Double>();
	// Y
	public ArrayList<Double> accelValueYs = new ArrayList<Double>();
	// Z
	public ArrayList<Double> accelValueZs = new ArrayList<Double>();
	
	public void Clear()
	{
		accelValueXs.clear();
		accelValueYs.clear();
		accelValueZs.clear();
	}
	
	public boolean IsEmpty()
	{
		if ( accelValueXs.size() == 0 )
		{
			return true;
		}
		
		return false;
	}
	
	public int GetNumData()
	{
		return accelValueXs.size();
	}
	
	public void Copy( AccelValue s )
	{
		Copy( s.accelValueXs , s.accelValueYs , s.accelValueZs );
	}
	
	public void Copy( ArrayList<Double> xs , ArrayList<Double> ys , ArrayList<Double> zs )
	{
		accelValueXs = ( ArrayList<Double> )xs.clone();
		accelValueYs = ( ArrayList<Double> )ys.clone();
		accelValueZs = ( ArrayList<Double> )zs.clone();
	}
}
